html,
body {
  height: 100%;
}

body {
  line-height: 1.5;
  color: @site-text-color;
  font-size: 14px;
  background: #fff !important;
  transition: background 1s cubic-bezier(0.075, 0.82, 0.165, 1);
  overflow-x: hidden;
}

a {
  transition: color 0.3s ease;

  &:focus {
    text-decoration: underline;
    text-decoration-skip-ink: auto;
  }
}

ul,
ol {
  margin: 0;
  padding: 0;
}

ul,
ol {
  list-style: none;
}

.main {
  @media (max-width: @mobile-max) {
    height: calc(100% - 86px);
  }

  &-wrapper {
    background: #fff;
    padding: 40px 0 0;
    position: relative;

    @media (max-width: @mobile-max) {
      width: 100%;
      border-radius: 0;
      margin: 0;
    }
  }

  &-container {
    padding: 0 170px 144px 64px;
    background: #fff;
    min-height: 500px;
    overflow: hidden;
    border-left: 1px solid @site-border-color-split;
    position: relative;
    margin-left: -1px;

    @media (max-width: @mobile-max) {
      padding-left: 16px;
      padding-right: 16px;
      margin-right: 0;

      >.markdown>* {
        width: 100% !important;
      }
    }
  }
}

.pages-container {
  padding-right: 64px;
}

.main-menu {
  z-index: 1;

  &-wrap {
    overflow-x: hidden;
    overflow-y: hidden;
    max-height: 100vh;

    &:hover {
      overflow-y: auto;
    }
  }

  .ant-menu-item {
    outline: none;

    &:after {
      left: 0;
      right: inherit;
    }
  }
}

.aside-container {
  padding-bottom: 50px;

  &.ant-menu-inline .ant-menu-submenu-title h4,
  &.ant-menu-inline>.ant-menu-item,
  &.ant-menu-inline .ant-menu-item a {
    font-size: 14px;
    text-overflow: ellipsis;
    overflow: hidden;
  }

  &.ant-menu-inline .ant-menu-item-group-title {
    padding-left: 56px;
  }

  a[disabled] {
    color: #ccc;
  }

  .menu-item-link-outside {
    position: relative;

    .anticon {
      font-size: 12px;
      color: @primary-color;
      opacity: 0;
      position: absolute;
      right: -10px;
      top: 16px;
      transition: all 0.3s;
    }

    &:hover .anticon {
      opacity: 1;
    }
  }

  @media (max-width: @mobile-max) {
    float: none;
    width: auto;
    padding-bottom: 30px;
    border-right: 0;
  }
}

.chinese {
  font-size: 12px;
  margin-left: 6px;
  font-weight: normal;
  opacity: 0.67;
}

.outside-link {
  display: inline-block;
}

.outside-link:after {
  content: '\e691';
  font-family: 'anticon';
  margin-left: 5px;
  font-size: 12px;
  color: #aaa;
}

.outside-link.internal {
  display: none;
}

// reset menu text color
.menu-site {
  .ant-menu-item>a {
    color: @site-text-color;
  }

  .ant-menu-item-selected>a,
  .ant-menu-item>a:hover {
    color: @primary-color;
  }

  &__more {
    .ant-dropdown-trigger {
      .anticon {
        transition: transform 0.3s @ease-in-out-circ;
      }

      &:hover {
        .anticon {
          transform: rotate(180deg);
        }
      }
    }
  }
}

#react-content {
  transition: transform 0.3s @ease-in-out-circ;
  height: 100%;
}

.page-wrapper {
  display: block;
  overflow: hidden;
  padding: 0;
  width: 100%;

  a {
    text-decoration: none;
  }
}

.api-title {
  .edit-button {
    color: #314659;

    .anticon {
      padding-left: 4px;
      font-size: 18px;
    }
  }
}
